package com.mxpio.erp.common.asset.entity;


import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import com.mxpio.erp.common.jpa.model.OrderLine;

import com.mxpio.erp.common.technology.entity.ItemGroup;
import com.mxpioframework.security.annotation.Dict;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

@Data
@EqualsAndHashCode(callSuper=false)
@Entity
@Table(name = "MB_ERP_ASSET_BR_LINE")
@Schema(description = "借还申请单明细行")
public class BorrowApplyLine extends OrderLine {
	private static final long serialVersionUID = 1L;


	@Column(name = "MEMO_")
	@Schema(description = "备注")
	private String memo;

	@Column(name = "ITEM_GROUP_CODE_")
	@Schema(description = "物料组")
	@Dict(dicCode="groupCode", dicEntity = ItemGroup.class, dicText = "groupName")
	private String itemGroupCode;

	/*@Id
	@Generator
	@Column(name = "ID_", updatable = false)
	@Schema(description = "ID")
	private String id;
	
	@Column(name = "APPLY_NO_", updatable = false)
	@Schema(description = "申请单号")
	private String applyNo;
	
	@Column(name = "ITEM_CODE_", updatable = false)
	@Schema(description = "物料编码")
	private String itemCode;
	
	@Column(name = "ITEM_NAME_")
	@Schema(description = "物料名称")
	private String itemName;
	
	@Column(name = "ITEM_GROUP_CODE_")
	@Schema(description = "物料组")
	@Dict(dicCode="groupCode", dicEntity = ItemGroup.class, dicText = "groupName")
	private String itemGroupCode;
	
	@Column(name = "ITEM_SPEC_")
	@Schema(description = "物料规格")
	private String itemSpec;
	
	@Column(name = "UNIT_CODE_")
	@Schema(description = "单位编号")
	@Dict(dicCode="ERP_TECH_UNIT_CODE")
	private String unitCode;
	
	@Column(name = "LOT_NO_")
	@Schema(description = "批次")
	private String lotNo;
	
	@Column(name = "WH_CODE_")
	@Schema(description = "仓库代码")
	@Dict(dicCode = "whCode" ,dicEntity = Warehouse.class, dicText = "whName")
	private String whCode;
	
	@Column(name = "QUANTITY_")
	@Schema(description = "数量")
	private BigDecimal quantity;

	@Column(name = "LINE_NO_", updatable = false)
	@Schema(description = "行号")
	private String lineNo;

	@Column(name = "LINE_STATUS_")
	@Schema(description = "行状态")
	@Dict(dicCode = "ERP_BUY_REQ_LINE_STATUS")
	private String lineStatus;*/
}
